# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.shortcuts import render
from django.http import HttpResponse
from form_dome.forms import LoginForm

# Create your views here.

def login_view(request):
    if request.method == 'POST':
        return HttpResponse("登录成功")
    else:
        login_form = LoginForm()
        c = {'user':login_form,'dir_user':dir(login_form)}
        return render(request,template_name='demo.html',context=c)
